package com.xinghai.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xinghai.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import com.xinghai.common.core.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.List;

/**
 * 对账单明细对象 qd_pay_order_info
 *
 * @author xinghai
 * @date 2024-12-07
 */
@TableName("qd_pay_order_info")
@Data
public class QdPayOrderInfo extends BaseEntity
{
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 状态（0显示 1隐藏） */
    @Excel(name = "状态", readConverterExp = "0=未平帐,1=已平账")
    private String status;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    /** 用户id */
//    @Excel(name = "用户id")
    private Long userId;

    /** 用户手机号 */
    @Excel(name = "用户手机号")
    private String userPhone;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String userName;

    /** 买入金额 */
    @Excel(name = "买入金额")
    private BigDecimal buyAmount;

    /** 卖出金额 */
    @Excel(name = "卖出金额")
    private BigDecimal sellAmount;

    /** 差额 */
    @Excel(name = "差额")
    private BigDecimal diff;

    /** 店铺id */
//    @Excel(name = "店铺id")
    private Long storeId;

    /** 店铺名称 */
    @Excel(name = "店铺名称")
    private String storeName;

    /** 关联对账单 */
//    @Excel(name = "关联对账单")
    private Long linkPayOrder;


    @Excel(name = "交易详情")
    @TableField(exist = false)
    private String dealInfoStr;

    @TableField(exist = false)
    private List<QdDealInfo> dealInfoList;

    @TableField(exist = false)
    private String bankInfo;
    @TableField(exist = false)
    private String bankName;
    @TableField(exist = false)
    private String bankNo;

    /** 买入数量 */
    //@TableField(exist = false)
    private Integer buyNum;

    /** 买入数量 */
    //@TableField(exist = false)
    private Integer sellNum;
}
